The property is called font-variant-alternates, not -alternatives.
Correct this everywhere.
const char *animation_subproperties[] = { "animation-name", "animation-iteration-count", "animation-duration", "animation-delay",
"animation-timing-function", "animation-direction", "animation-fill-mode", NULL };
const char *text_decoration_subproperties[] = { "text-decoration-line", "text-decoration-style", "text-decoration-color", NULL };
- const char *font_variant_subproperties[] = { "font-variant-ligatures", "font-variant-position", "font-variant-caps", "font-variant-numeric", "font-variant-alternatives", "font-variant-east-asian", NULL };
+ const char *font_variant_subproperties[] = { "font-variant-ligatures", "font-variant-position", "font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-east-asian", NULL };
const char **all_subproperties;
GtkCssValue *position;
GtkCssValue *caps;
GtkCssValue *numeric;
- GtkCssValue *alternatives;
+ GtkCssValue *alternates;
GtkCssValue *east_asian;
GString *s;
int i;
g_string_append (s, "zero 1");
}
- alternatives = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES);
- for (i = 0; i < _gtk_css_array_value_get_n_values (alternatives); i++)
+ alternates = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATES);
+ for (i = 0; i < _gtk_css_array_value_get_n_values (alternates); i++)
{
- GtkCssValue *value = _gtk_css_array_value_get_nth (alternatives, i);
+ GtkCssValue *value = _gtk_css_array_value_get_nth (alternates, i);
if (s->len > 0) g_string_append (s, ", ");
if (strcmp (_gtk_css_ident_value_get (value), "historical-forms") == 0)
g_string_append (s, "hist 1");
}
static GtkCssValue *
-parse_font_variant_alternatives (GtkCssStyleProperty *property,
- GtkCssParser *parser)
+parse_font_variant_alternates (GtkCssStyleProperty *property,
+ GtkCssParser *parser)
{
GtkCssValue *value = NULL;
parse_font_variant_numeric,
NULL,
_gtk_css_array_value_new (_gtk_css_ident_value_new ("normal")));
- gtk_css_style_property_register ("font-variant-alternatives",
- GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES,
+ gtk_css_style_property_register ("font-variant-alternates",
+ GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATES,
G_TYPE_NONE,
0,
GTK_CSS_AFFECTS_TEXT | GTK_CSS_AFFECTS_TEXT_ATTRS,
- parse_font_variant_alternatives,
+ parse_font_variant_alternates,
NULL,
_gtk_css_array_value_new (_gtk_css_ident_value_new ("normal")));
gtk_css_style_property_register ("font-variant-east-asian",
GTK_CSS_PROPERTY_FONT_VARIANT_POSITION,
GTK_CSS_PROPERTY_FONT_VARIANT_CAPS,
GTK_CSS_PROPERTY_FONT_VARIANT_NUMERIC,
- GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES,
+ GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATES,
GTK_CSS_PROPERTY_FONT_VARIANT_EAST_ASIAN,
GTK_CSS_PROPERTY_TEXT_SHADOW,
GTK_CSS_PROPERTY_BOX_SHADOW,